package com.quick.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Driver implements java.io.Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer car_id;
    private String name;
    private String img;
    private String license;
    private String phone;
    private Double longitude;
    private Double latitude;
    private String password;
    private Double service_score;
    private String email;
    private Byte status;
    private Integer isdel;

    // 新增：距离订单出发地的距离（公里），非数据库字段
    @TableField(exist = false) // 标记为非数据库字段
    private Double distanceKm;
}
